package top;

/**
 * @author chenyw
 * @date 2022/7/13 10:16
 * @description    阶乘后零的个数:  计算5的个数
 */
public class Top172trailingZeroes {
    public int trailingZeroes(int n) {
        int count = 0;
        while (n >= 5){
            count += n / 5;
            n /= 5;
        }
        return count;
    }
}
